<template>
  <div>
    <svg :style="{ width: width, height: height }">
      <use :xlink:href="prefix + name" :fill="color"></use>
    </svg>
  </div>
</template>

<script setup lang="ts">
withDefaults(
  defineProps<{
    prefix?: string
    name: string
    color?: string
    width?: string
    height?: string
  }>(),
  {
    prefix: () => '#icon-',
    width: () => '16px',
    height: () => '16px',
  },
)
</script>
<style scoped></style>
